package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * 检查项表 实体类
 * 表名：ra_checklist_term
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "ra_checklist_term")
public class RaChecklistTerm implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 主键
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * 检查表id
     */
    @Column(name = "checklist_id", nullable = false)
    private Long checklistId;
    
    /**
     * 检查小类
     */
    @Column(name = "type_name", length = 100)
    private String typeName;
    
    /**
     * 检查内容
     */
    @Column(name = "term_name", length = 500)
    private String termName;
    
    /**
     * 负责人用户
     */
    @Column(name = "head_by", length = 100)
    private String headBy;
    
    /**
     * 检查周期
     */
    @Column(name = "check_cycle", nullable = false)
    private Integer checkCycle;
    
    /**
     * 是否关键项（0、否 1、是）
     * 默认值: 0
     */
    @Column(name = "is_key", nullable = false)
    private Byte isKey;
    
    /**
     * 最近检查时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "check_time", nullable = false)
    private java.time.LocalDateTime checkTime;
    
    /**
     * 租户主键
     * 默认值: 1
     */
    @Column(name = "tenant_id")
    private Integer tenantId;
    
    /**
     * 是否删除（0、否 1、是）
     * 默认值: 0
     */
    @Column(name = "is_del", nullable = false)
    private Byte isDel;
    
    /**
     * 创建时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "create_time", nullable = false)
    private java.time.LocalDateTime createTime;
    
    /**
     * 创建者
     */
    @Column(name = "create_by", length = 100)
    private String createBy;
    
    @Override
    public String toString() {
        return "RaChecklistTerm{" +
            "id=" + id +
            ", checklistId=" + checklistId +
            ", typeName=" + typeName +
            ", termName=" + termName +
            ", headBy=" + headBy +
            ", checkCycle=" + checkCycle +
            ", isKey=" + isKey +
            ", checkTime=" + checkTime +
            ", tenantId=" + tenantId +
            ", isDel=" + isDel +
            ", createTime=" + createTime +
            ", createBy=" + createBy +
        '}';
    }
} 